<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    
    <script>
        // let a = 1;   
        // let b = 1;
        for(let a = 1;a<10;a++){
            for(let b = 1;b<=a;b++){
                console.log(`${b}x${a}=${a*b}`);     
                document.write(`${b}x${a}=${a*b}`); 
                document.write("&nbsp;")    
            }
            console.log("\n")
            document.write("<br>")
        }



    </script>
</body>
</html>